package com.xpsoft.oa.model.produce;


import com.google.gson.annotations.Expose;
import com.xpsoft.oa.model.project.Project;

/**
 * MaterialDivert Base Java Bean, base class for the.oa.model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 *
 * TODO: add class/table comments
 */
public class MaterialDivert extends com.xpsoft.core.model.BaseModel {

	@Expose
    protected Long id;  
	@Expose
	protected String fromRepertory;
	@Expose
	protected Project fromProject;
	@Expose
	protected Project toProject;
	@Expose
	protected java.util.Date divertDate;
	@Expose
	protected String divertReason;
	@Expose
	protected Long processRunId;


	/**
	 * Default Empty Constructor for class MaterialDivert
	 */
	public MaterialDivert () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class MaterialDivert
	 */
	public MaterialDivert (
		 Long in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 	 * @return Long
     * @hibernate.id column="id" type="java.lang.Long" generator-class="native"
	 */
	public Long getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Long aValue) {
		this.id = aValue;
	}	

	/**
	 * 调出仓库	 * @return String
	 * @hibernate.property column="fromRepertory" type="java.lang.String" length="128" not-null="false" unique="false"
	 */
	public String getFromRepertory() {
		return this.fromRepertory;
	}
	
	public Long getProcessRunId() {
		return processRunId;
	}

	public void setProcessRunId(Long processRunId) {
		this.processRunId = processRunId;
	}

	/**
	 * Set the fromRepertory
	 */	
	public void setFromRepertory(String aValue) {
		this.fromRepertory = aValue;
	}	



	public Project getFromProject() {
		return fromProject;
	}

	public void setFromProject(Project fromProject) {
		this.fromProject = fromProject;
	}

	public Project getToProject() {
		return toProject;
	}

	public void setToProject(Project toProject) {
		this.toProject = toProject;
	}

	/**
	 * 调出时间	 * @return java.util.Date
	 * @hibernate.property column="divertDate" type="java.util.Date" length="19" not-null="false" unique="false"
	 */
	public java.util.Date getDivertDate() {
		return this.divertDate;
	}
	
	/**
	 * Set the divertDate
	 */	
	public void setDivertDate(java.util.Date aValue) {
		this.divertDate = aValue;
	}	

	/**
	 * 调出原因	 * @return String
	 * @hibernate.property column="divertReason" type="java.lang.String" length="65535" not-null="false" unique="false"
	 */
	public String getDivertReason() {
		return this.divertReason;
	}
	
	/**
	 * Set the divertReason
	 */	
	public void setDivertReason(String aValue) {
		this.divertReason = aValue;
	}	

}
